﻿using System;//
using System.Collections.Generic;
using System.Text;

using ECCIT.Business.Model;
using OgilvyOne.Model;

namespace OgilvyOne.UKNow.Model
{
    [Serializable]
    public class WarmupCommentModel : BaseModel
    {
        public int? LanguageID { get; set; }                // 语言类型
        public int? ID { get; set; }                       // 评论ID
        public int? WarmupID { get; set; }                  // 作品ID
        public string Text { get; set; }                   // 评论内容
        public DateTime Time { get; set; }                   // 评论时间
        public int State { get; set; }
        public int? CommenterID { get; set; }               // 评论发布人ID
        public int? SourceCommentID { get; set; }           // 原评论ID
        public int? SourceCommenterID { get; set; }         // 原评论发布人ID
        public WarmupModel Warmup { get; set; }             // 作品
        public MemberModel Commenter { get; set; }          // 评论人
        public WarmupCommentModel SourceComment { get; set; }// 原评论
        public MemberModel SourceCommenter { get; set; }    // 原评论人

        public WarmupCommentModel() { }

        public WarmupCommentModel(int? langID
            , int? id
            , int? warmupID
            , string text
            , DateTime time
            , int state
            , int? commenterID
            , int? sourceCommentID)
        {
            this.LanguageID = langID;
            this.ID = id;
            this.WarmupID = warmupID;
            this.Text = text;
            this.Time = time;
            this.State = state;
            this.CommenterID = commenterID;
            this.SourceCommenterID = sourceCommentID;
        }
    }
}
